# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-sequential-uuids
_projname=sequential-uuids
pkgver=1.0.1
# Upstream doesn't use tags yet (https://github.com/tvondra/sequential-uuids/issues/7).
_gitrev=665d5b18d17d9f3922b17facadedbcd8aefe1524
pkgrel=0
pkgdesc="Generator of sequential UUIDs for PostgreSQL"
url="https://github.com/tvondra/sequential-uuids"
arch="all"
license="MIT"
depends="postgresql"
makedepends="postgresql-dev"
source="https://github.com/tvondra/sequential-uuids/archive/$_gitrev/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_projname-$_gitrev"
options="!check"  # no tests provided

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="38818b815b9f2c23dde717f4efcc76a933d5cccf4da5a674d8ad72d0a92a9482e3f0286cb51e193dc0ff2d36b5b284154b7ce55126e5d07e9a9b4bad7c078bc7  postgresql-sequential-uuids-1.0.1.tar.gz"
